//
//  DSZXQHeaderView.m
//  7.13苏宁框架
//
//  Created by app15 on 15/7/23.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import "DSZXQHeaderView.h"

@implementation DSZXQHeaderView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(instancetype)initWithFrame:(CGRect)frame{
    self=[super initWithFrame:frame];
    if (self) {
        self=[[[NSBundle mainBundle]loadNibNamed:@"DSZXQHeaderView" owner:nil options:nil]lastObject];
    }
    return self;
}


-(void)awakeFromNib{
    _guanzhuBtn.layer.borderWidth = 1;
    _guanzhuBtn.layer.borderColor = [UIColor orangeColor].CGColor;
    _guanzhuBtn.layer.cornerRadius = 5;
    _guanzhuBtn.layer.masksToBounds = YES;
}
- (IBAction)attentionAction:(id)sender {
    if ([self.delegate respondsToSelector:@selector(clickCareBtn:model:)]) {
        [self.delegate clickCareBtn:sender model:nil];
    }
}
@end
